package com.zhang.family_doctor.service;

import com.zhang.family_doctor.entity.R;
import com.zhang.family_doctor.entity.Treaty;

import javax.servlet.http.HttpServletRequest;

public interface TreatyService {
    /**
     * 新增或修改
     * @param treaty
     * @return
     */
    R saveOrUpdate(Treaty treaty, HttpServletRequest request);

    /**
     * 根据协议类型查询协议
     * @param agreementType
     * @return
     */
    R getTreatyByAgreementType(Integer agreementType);
}
